package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.DeviceEntity;
import io.itit.ecp.admin.server.entity.extend.DeviceExtEntity;
import io.itit.ecp.admin.server.entity.extend.PhysicalModelExt;

import java.util.List;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：设备管理服务类
 * @Date：Create by 2023-11-30 18:51:39
 */
public interface IDeviceService extends JoinIService<DeviceEntity> {

    boolean saveDeviceBatch(List<DeviceEntity> entities);

    List<DeviceExtEntity> countProductType();

    int countOnline(String sceneProjectId, String sceneEdificeId, String sceneFloorId);

    int countOffline(String sceneProjectId, String sceneEdificeId, String sceneFloorId);

    DeviceEntity getByDeviceCode(String deviceCode);

    List<PhysicalModelExt> queryModelByDeviceId(String id);
}